import InputText from "../inputs/InputText"
import InputTextarea from "../inputs/InputTextarea"
import InputPassword from "../inputs/InputPassword"
import InputSelect from "../inputs/InputSelect"
import InputBoolean from "../inputs/InputBoolean"
import InputDate from "../inputs/InputDate"
import InputInteger from "../inputs/InputInteger"
import InputFloat from "../inputs/InputFloat"
import InputUser from "../inputs/InputUser"
import InputUserGroup from "../inputs/InputUserGroup"
import InputFile from "../inputs/InputFile"
import InputRadio from "../inputs/InputRadio"
import InputTextChangeByBlur from "../inputs/InputTextChangeByBlur"
import InputSelectOptions from "../inputs/InputSelectOptions"

export default {
  'text': {
    name: '单行文本',
    component: InputTextChangeByBlur,
    props: InputText.propsMap
  },
  'password': {
    name: '密码',
    component: InputPassword,
    props: InputPassword.propsMap
  },
  'textarea': {
    name: '多行文本',
    component: InputTextarea,
    props: InputTextarea.propsMap
  },
  'select': {
    name: '下拉选择框',
    component: InputSelect,
    props: InputSelect.propsMap
  },
  'radio': {
    name: '单选按钮',
    component: InputRadio,
    props: InputRadio.propsMap
  },
  'boolean': {
    name: '布尔值',
    component: InputBoolean,
    props: InputBoolean.propsMap
  },
  'date': {
    name: '日期',
    component: InputDate,
    props: InputDate.propsMap
  },
  'int': {
    name: '整数',
    component: InputInteger,
    props: InputInteger.propsMap
  },
  'float': {
    name: '小数',
    component: InputFloat,
    props: InputFloat.propsMap
  },
  'person': {
    name: '选择用户',
    component: InputUser,
    props: InputUser.propsMap
  },
  'group': {
    name: '选择用户组',
    component: InputUserGroup,
    props: InputUserGroup.propsMap
  },
  'file': {
    name: '上传',
    component: InputFile,
    props: InputFile.propsMap
  },
  'textChangeByBlur': {
    name: '字符',
    component: InputTextChangeByBlur,
    props: [],
    notInDesign: true
  },
  'selectOptions': {
    name: 'selectOptions',
    component: InputSelectOptions,
    props: InputSelectOptions.propsMap,
    notInDesign: true
  },
}